<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>The WURFL UserAgent Features Adapter - Zend Framework Manual</title>

    <link href="../css/shCore.css" rel="stylesheet" type="text/css" />
    <link href="../css/shThemeDefault.css" rel="stylesheet" type="text/css" />
    <link href="../css/styles.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Zend Framework</h1>
<h2>Programmer's Reference Guide</h2>
<ul>
    <li><a href="../en/zend.http.user-agent-features-wurfl.html">Inglês (English)</a></li>
    <li><a href="../pt-br/zend.http.user-agent-features-wurfl.html">Português Brasileiro (Brazilian Portuguese)</a></li>
</ul>
<table width="100%">
    <tr valign="top">
        <td width="85%">
            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="zend.http.user-agent-features.html">The UserAgent Features Adapter</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="zend.http.html">Zend_Http</a></span><br />
                        <span class="home"><a href="manual.html">Programmer's Reference Guide</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="zend.http.user-agent-features-device-atlas.html">The DeviceAtlas UserAgent Features Adapter</a></div>
                    </td>
                </tr>
            </table>
<hr />
<div id="zend.http.user-agent-features-wurfl" class="section"><div class="info"><h1 class="title">The WURFL UserAgent Features Adapter</h1></div>
    

    <div class="section" id="zend.http.user-agent-features-wurfl.intro"><div class="info"><h1 class="title">Overview</h1></div>
        

        <p class="para">
            <a href="http://wurfl.sourceforge.net/" class="link external">&raquo; WURFL</a> (Wireless Universal Resource
            File) is a database of mobile device capabilities. This class provides a <a href="zend.http.user-agent-features.html" class="link">features adapter</a> that utilizes the
            <acronym class="acronym">WURFL</acronym> PHP API in order to discover mobile device capabilities to
            inject into <span class="classname">UserAgent</span> device instances.
        </p>
    </div>

    <div class="section" id="zend.http.user-agent-features-wurfl.quick-start"><div class="info"><h1 class="title">Quick Start</h1></div>
        

        <p class="para">
            Please see the <a href="zend.http.user-agent.html#zend.http.user-agent.quick-start" class="link">Zend_Http_UserAgent
                quick start</a> for an example.
        </p>
    </div>

    <div class="section" id="zend.http.user-agent-features-wurfl.options"><div class="info"><h1 class="title">Configuration Options</h1></div>
        

        <dl>
<div class="info"><h1 class="title">WURFL API Options</h1></div>
            

            <dt>

                <dt class="term">wurflapi.wurfl_api_version</dt>

                <dd>

                    <p class="para">
                        If using the <acronym class="acronym">WURFL</acronym> API, use this key to specify which
                        version you are using; typically, this will be either &quot;1.0&quot; or &quot;1.1&quot;.
                    </p>
                </dd>

            </dt>


            <dt>

                <dt class="term">wurflapi.wurfl_lib_dir</dt>

                <dd>

                    <p class="para">
                        If using the <acronym class="acronym">WURFL</acronym> API, use this key to specify in which
                        directory the library exists.
                    </p>
                </dd>

            </dt>


            <dt>

                <dt class="term">wurflapi.wurfl_config_file</dt>

                <dd>

                    <p class="para">
                        If using the <acronym class="acronym">WURFL</acronym> API, use this key to specify the
                        location of the configuration file you will use; typically, this will be
                        <var class="filename">resources/wurfl-config.php</var> within the
                        <var class="varname">wurfl_lib_dir</var>.
                    </p>
                </dd>

            </dt>


            <dt>

                <dt class="term">wurflapi.wurfl_config_array.wurfl.main-file</dt>

                <dd>

                    <p class="para">
                        If using version 1.1 of the <acronym class="acronym">WURFL</acronym> API, you can omit using
                        a <var class="varname">wurfl_config_file</var>, and instead provide an associative
                        array of configuration values. This particular value indicates the location
                        of the <var class="filename">wurfl.xml</var> file containing the actual
                        <acronym class="acronym">WURFL</acronym> database.
                    </p>
                </dd>

            </dt>


            <dt>

                <dt class="term">wurflapi.wurfl_config_array.wurfl.patches[]</dt>

                <dd>

                    <p class="para">
                        If using version 1.1 of the <acronym class="acronym">WURFL</acronym> API, you can omit using
                        a <var class="varname">wurfl_config_file</var>, and instead provide an associative
                        array of configuration values. This particular value is an array of file
                        locations containing patchfiles for the <var class="varname">wurfl.main-file</var>
                        (which are used to ammend and extend the primary database file).
                    </p>
                </dd>

            </dt>


            <dt>

                <dt class="term">wurflapi.wurfl_config_array.persistence.provider</dt>

                <dd>

                    <p class="para">
                        If using version 1.1 of the <acronym class="acronym">WURFL</acronym> API, you can omit using
                        a <var class="varname">wurfl_config_file</var>, and instead provide an associative
                        array of configuration values. This particular value indicates the type of
                        persistence provider used when caching discovered capabilities. See the
                        <acronym class="acronym">WURFL</acronym> documentation for potential values; &quot;file&quot; is a
                        known good value.
                    </p>
                </dd>

            </dt>


            <dt>

                <dt class="term">wurflapi.wurfl_config_array.persistence.dir</dt>

                <dd>

                    <p class="para">
                        If using version 1.1 of the <acronym class="acronym">WURFL</acronym> API, you can omit using
                        a <var class="varname">wurfl_config_file</var>, and instead provide an associative
                        array of configuration values. This particular value indicates the location
                        where the persistence provider will cache discovered capabilities.
                    </p>
                </dd>

            </dt>

        </dl>

    </div>

    <div class="section" id="zend.http.user-agent-features-wurfl.methods"><div class="info"><h1 class="title">Available Methods</h1></div>
        

        <dl>

            <dt id="zend.http.user-agent-features-wurfl.methods.get-from-request">
                <dt class="term">
                    <div class="methodsynopsis dc-description">
                         <span class="methodname">getFromRequest</span>
                        <span class="methodparam">( 
                            <code_funcparams class="funcparams">array $request, array $config</code_funcparams>
                         )</span>
                    </div>

                </dt>

                <dd>

                    <p class="para">
                        Decompose the request in order to return an array of device capabilities.
                    </p>
                </dd>

            </dt>

        </dl>

    </div>
</div>
        <hr />

            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="zend.http.user-agent-features.html">The UserAgent Features Adapter</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="zend.http.html">Zend_Http</a></span><br />
                        <span class="home"><a href="manual.html">Programmer's Reference Guide</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="zend.http.user-agent-features-device-atlas.html">The DeviceAtlas UserAgent Features Adapter</a></div>
                    </td>
                </tr>
            </table>
</td>
        <td style="font-size: smaller;" width="15%"> <style type="text/css">
#leftbar {
	float: left;
	width: 186px;
	padding: 5px;
	font-size: smaller;
}
ul.toc {
	margin: 0px 5px 5px 5px;
	padding: 0px;
}
ul.toc li {
	font-size: 85%;
	margin: 1px 0 1px 1px;
	padding: 1px 0 1px 11px;
	list-style-type: none;
	background-repeat: no-repeat;
	background-position: center left;
}
ul.toc li.header {
	font-size: 115%;
	padding: 5px 0px 5px 11px;
	border-bottom: 1px solid #cccccc;
	margin-bottom: 5px;
}
ul.toc li.active {
	font-weight: bold;
}
ul.toc li a {
	text-decoration: none;
}
ul.toc li a:hover {
	text-decoration: underline;
}
</style>
 <ul class="toc">
  <li class="header home"><a href="manual.html">Programmer's Reference Guide</a></li>
  <li class="header up"><a href="manual.html">Programmer's Reference Guide</a></li>
  <li class="header up"><a href="reference.html">Zend Framework Reference</a></li>
  <li class="header up"><a href="zend.http.html">Zend_Http</a></li>
  <li><a href="zend.http.client.html">Introduction</a></li>
  <li><a href="zend.http.client.advanced.html">Zend_Http_Client - Advanced Usage</a></li>
  <li><a href="zend.http.client.adapters.html">Zend_Http_Client - Connection Adapters</a></li>
  <li><a href="zend.http.cookies.html">Zend_Http_Cookie and Zend_Http_CookieJar</a></li>
  <li><a href="zend.http.response.html">Zend_Http_Response</a></li>
  <li><a href="zend.http.user-agent.html">Zend_Http_UserAgent</a></li>
  <li><a href="zend.http.user-agent-device.html">The UserAgent Device Interface</a></li>
  <li><a href="zend.http.user-agent-features.html">The UserAgent Features Adapter</a></li>
  <li class="active"><a href="zend.http.user-agent-features-wurfl.html">The WURFL UserAgent Features Adapter</a></li>
  <li><a href="zend.http.user-agent-features-device-atlas.html">The DeviceAtlas UserAgent Features Adapter</a></li>
  <li><a href="zend.http.user-agent-features-tera-wurfl.html">The TeraWurfl UserAgent Features Adapter</a></li>
  <li><a href="zend.http.user-agent-storage.html">The UserAgent Storage Interface</a></li>
  <li><a href="zend.http.user-agent-storage-session.html">The Session UserAgent Storage Adapter</a></li>
 </ul>
 </td>
    </tr>
</table>

<script type="text/javascript" src="../js/shCore.js"></script>
<script type="text/javascript" src="../js/shAutoloader.js"></script>
<script type="text/javascript" src="../js/main.js"></script>

</body>
</html>